﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;
using Word = Microsoft.Office.Interop.Word;
using Office = Microsoft.Office.Core;
using UILibrary;

namespace OfficeInCloudWord2007
{
    public partial class OfficeInCloudWord2007 : OfficeRibbon
    {
        public OfficeInCloudWord2007()
        {
            InitializeComponent();
        }

        private void OfficeInCloudWord2007_Load(object sender, RibbonUIEventArgs e)
        {
            foreach (Microsoft.Office.Tools.CustomTaskPane m_CustomTaskPane in Globals.ThisAddIn.CustomTaskPanes)
            {
                if (m_CustomTaskPane.Title == "Office in Cloud")
                {
                    m_CustomTaskPane.Visible = true;
                }
            }
        }

        private void button2_Click(object sender, RibbonControlEventArgs e)
        {
            AboutBox box = new AboutBox();
            box.ShowDialog(); 
        }

        public void button1_Click(object sender, RibbonControlEventArgs e)
        {
            Globals.ThisAddIn.makePaneVisible(Globals.ThisAddIn.Application.ActiveWindow);
        }
    }
}
